package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rerun.common.util.JsonDateFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * The type Job.
 */
@TableName("job")
public class Job extends Model<Job> {
  private static final long serialVersionUID = 321416125761418831L;

  @TableId(type = IdType.UUID)
  private String id;
  private long parkId;
  private String jobName;
  private String workCity;
  private String  jobType;
  private String workDistrict;
  private String workYears;
  private String edu;
  private String salaryRange;
  private String longitude;
  private String latitude;
  private long status;
  private String msg;
  private String jobDetail;
  private String needSkills;
  @JsonSerialize(using=JsonDateFormat.class)
  private Date createTime;
  @JsonSerialize(using=JsonDateFormat.class)
  private Date updateTime;
  private String updateMan;
  @TableField(exist = false)
  private YoyoPark yoyoPark;

    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId() {
    return id;
  }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(String id) {
    this.id = id;
  }


    /**
     * Gets park id.
     *
     * @return the park id
     */
    public long getParkId() {
    return parkId;
  }

    /**
     * Sets park id.
     *
     * @param parkId the park id
     */
    public void setParkId(long parkId) {
    this.parkId = parkId;
  }


    /**
     * Gets job name.
     *
     * @return the job name
     */
    public String getJobName() {
    return jobName;
  }

    /**
     * Sets job name.
     *
     * @param jobName the job name
     */
    public void setJobName(String jobName) {
    this.jobName = jobName;
  }


    /**
     * Gets work city.
     *
     * @return the work city
     */
    public String getWorkCity() {
    return workCity;
  }

    /**
     * Sets work city.
     *
     * @param workCity the work city
     */
    public void setWorkCity(String workCity) {
    this.workCity = workCity;
  }


    /**
     * Gets work district.
     *
     * @return the work district
     */
    public String getWorkDistrict() {
    return workDistrict;
  }

    /**
     * Sets work district.
     *
     * @param workDistrict the work district
     */
    public void setWorkDistrict(String workDistrict) {
    this.workDistrict = workDistrict;
  }


  @Override
  public String toString() {
    return "{" +
            "id:" + id +
            ", parkId:" + parkId +
            ", jobName:" + jobName +
            ", workCity:" + workCity +
            ", jobType:" + jobType +
            ", workDistrict:" + workDistrict +
            ", workYears:" + workYears +
            ", edu:" + edu +
            ", salaryRange:" + salaryRange +
            ", longitude:" + longitude +
            ", latitude:" + latitude +
            ", status:" + status +
            ", msg:" + msg +
            ", jobDetail:" + jobDetail +
            ", needSkills:" + needSkills +
            ", createTime:" + createTime +
            ", updateTime:" + updateTime +
            ", updateMan:" + updateMan +
            ", yoyoPark:" + yoyoPark +
            '}';
  }

    /**
     * Gets yoyo park.
     *
     * @return the yoyo park
     */
    public YoyoPark getYoyoPark() {
    return yoyoPark;
  }

    /**
     * Sets yoyo park.
     *
     * @param yoyoPark the yoyo park
     */
    public void setYoyoPark(YoyoPark yoyoPark) {
    this.yoyoPark = yoyoPark;
  }

    /**
     * Gets work years.
     *
     * @return the work years
     */
    public String getWorkYears() {
    return workYears;

  }

    /**
     * Sets work years.
     *
     * @param workYears the work years
     */
    public void setWorkYears(String workYears) {
    this.workYears = workYears;
  }


    /**
     * Gets edu.
     *
     * @return the edu
     */
    public String getEdu() {
    return edu;
  }

    /**
     * Sets edu.
     *
     * @param edu the edu
     */
    public void setEdu(String edu) {
    this.edu = edu;
  }


    /**
     * Gets salary range.
     *
     * @return the salary range
     */
    public String getSalaryRange() {
    return salaryRange;
  }

    /**
     * Sets salary range.
     *
     * @param salaryRange the salary range
     */
    public void setSalaryRange(String salaryRange) {
    this.salaryRange = salaryRange;
  }


    /**
     * Gets longitude.
     *
     * @return the longitude
     */
    public String getLongitude() {
    return longitude;
  }

    /**
     * Sets longitude.
     *
     * @param longitude the longitude
     */
    public void setLongitude(String longitude) {
    this.longitude = longitude;
  }


    /**
     * Gets latitude.
     *
     * @return the latitude
     */
    public String getLatitude() {
    return latitude;
  }

    /**
     * Sets latitude.
     *
     * @param latitude the latitude
     */
    public void setLatitude(String latitude) {
    this.latitude = latitude;
  }


    /**
     * Gets status.
     *
     * @return the status
     */
    public long getStatus() {
    return status;
  }

    /**
     * Sets status.
     *
     * @param status the status
     */
    public void setStatus(long status) {
    this.status = status;
  }


    /**
     * Gets msg.
     *
     * @return the msg
     */
    public String getMsg() {
    return msg;
  }

    /**
     * Sets msg.
     *
     * @param msg the msg
     */
    public void setMsg(String msg) {
    this.msg = msg;
  }


    /**
     * Gets job detail.
     *
     * @return the job detail
     */
    public String getJobDetail() {
    return jobDetail;
  }

    /**
     * Sets job detail.
     *
     * @param jobDetail the job detail
     */
    public void setJobDetail(String jobDetail) {
    this.jobDetail = jobDetail;
  }


    /**
     * Gets need skills.
     *
     * @return the need skills
     */
    public String getNeedSkills() {
    return needSkills;
  }

    /**
     * Sets need skills.
     *
     * @param needSkills the need skills
     */
    public void setNeedSkills(String needSkills) {
    this.needSkills = needSkills;
  }


    /**
     * Gets create time.
     *
     * @return the create time
     */
    public Date getCreateTime() {
    return createTime;
  }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     */
    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

    /**
     * Gets update time.
     *
     * @return the update time
     */
    public Date getUpdateTime() {
    return updateTime;
  }

    /**
     * Sets update time.
     *
     * @param updateTime the update time
     */
    public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

    /**
     * Gets update man.
     *
     * @return the update man
     */
    public String getUpdateMan() {
    return updateMan;
  }

    /**
     * Sets update man.
     *
     * @param updateMan the update man
     */
    public void setUpdateMan(String updateMan) {
    this.updateMan = updateMan;
  }

    /**
     * Gets job type.
     *
     * @return the job type
     */
    public String getJobType() {
    return jobType;
  }

    /**
     * Sets job type.
     *
     * @param jobType the job type
     */
    public void setJobType(String jobType) {
    this.jobType = jobType;
  }

  @Override
  protected Serializable pkVal() {
    return this.id;
  }

}
